<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/resolver.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">resolver.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../dc/da6/resolver_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#ifndef __RESOVER_HPP__</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#define __RESOVER_HPP__</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &lt;memory.h&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &quot;<a class="code" href="../../dc/d4b/uvlper_8hpp.html">uvlper.hpp</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &quot;<a class="code" href="../../d3/df7/ary__str_8hpp.html">ary_str.hpp</a>&quot;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>{</div>
<div class="foldopen" id="foldopen00020" data-start="{" data-end="};">
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html">   20</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d1/d91/classwheels_1_1resolver.html">resolver</a></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>{</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3afe2b3109e53ef62a6c026a555db5b95d">   24</a></span>    <span class="keyword">enum</span> <a class="code hl_enumeration" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3">protocol</a>{ <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3afe2b3109e53ef62a6c026a555db5b95d">IP4</a> , <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3ac41e26c5f094bc5e238148e89f537f41">IP6</a> };</div>
<div class="foldopen" id="foldopen00025" data-start="{" data-end="};">
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3">   25</a></span>    <span class="keyword">enum</span> <a class="code hl_enumeration" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3">err_code</a>{</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3af19d656cfa3ad08c486b584b077e9ef4">   26</a></span>        <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3af19d656cfa3ad08c486b584b077e9ef4">ERR_BASE</a> = -1000,</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3a0cb93165c4a3abcda41b979f3387ceb6">   27</a></span>        <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3a0cb93165c4a3abcda41b979f3387ceb6">ERR_ALLOC_MEM</a>,</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3aefc7a7500c732953216e9236dc8bc327">   28</a></span>        <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3aefc7a7500c732953216e9236dc8bc327">ERR_UV_DNS_RESOLVE</a>,</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>        <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3a2de92ce777d335de3ca97f96c68e5121">OK</a></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3a2de92ce777d335de3ca97f96c68e5121">   30</a></span>    };</div>
</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#abef867851ac96413f0ea5fa334d84b59">   31</a></span>    <span class="keyword">using </span><a class="code hl_enumeration" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3">emErrCode</a> = <a class="code hl_enumeration" href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3">err_code</a>;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    std::function&lt; void ( <span class="keyword">struct</span> addrinfo *)&gt;  on_success;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>    std::function&lt; void ( <span class="keywordtype">int</span> )&gt; on_fail;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    <span class="keywordtype">int</span>                     m_error;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    <span class="keywordtype">int</span>                     m_state;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    std::atomic&lt; bool &gt;     m_finish;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>    <span class="keyword">struct </span>addrinfo       * pt_result;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>  <span class="keywordtype">void</span> free_result( <span class="keyword">struct</span> addrinfo* );</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a41847ebd788e7a75b46cfa1b94a15a73">resolver</a>();</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>    <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a41847ebd788e7a75b46cfa1b94a15a73">resolver</a>( <span class="keyword">const</span> std::string&amp; url , <span class="keywordtype">int</span> port , <span class="keywordtype">bool</span> type , std::function&lt; <span class="keywordtype">void</span> ( <span class="keyword">struct</span> addrinfo * )&gt; fun);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>    <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a41847ebd788e7a75b46cfa1b94a15a73">resolver</a>( <span class="keyword">const</span> std::string&amp; url , <span class="keyword">const</span> std::string&amp; service , std::function&lt; <span class="keywordtype">void</span> ( <span class="keyword">struct</span> addrinfo * )&gt; fun);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>    <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a41847ebd788e7a75b46cfa1b94a15a73">resolver</a>( <span class="keyword">const</span> std::string&amp; url ,</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>        <span class="keywordtype">int</span> port ,</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>        <span class="keywordtype">bool</span> type ,</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>        std::function&lt; <span class="keywordtype">void</span> ( <span class="keyword">struct</span> addrinfo * ) &gt; on_success ,</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>        std::function&lt; <span class="keywordtype">void</span> ( <span class="keywordtype">int</span> )&gt; on_fail );</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#ae6fba2077fda8e8a9f9eb0ae6bb6083b">   63</a></span>    <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#ae6fba2077fda8e8a9f9eb0ae6bb6083b">resolver</a>( <span class="keyword">const</span> std::string&amp; url ,</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>        <span class="keyword">const</span> std::string&amp; service ,</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>        std::function&lt; <span class="keywordtype">void</span> ( <span class="keyword">struct</span> addrinfo * ) &gt; on_success ,</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>        std::function&lt; <span class="keywordtype">void</span> ( <span class="keywordtype">int</span> )&gt; on_fail );</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>    <span class="keyword">virtual</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a6f21679631bf350c38d4324deb1d726f">~resolver</a>();</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23">resolve</a>( <span class="keyword">const</span> std::string&amp; url , <span class="keywordtype">int</span> port , <span class="keywordtype">bool</span> type , std::function&lt;<span class="keywordtype">void</span> ( <span class="keyword">struct</span> addrinfo * )&gt; fun);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23">resolve</a>( <span class="keyword">const</span> std::string&amp; url ,</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>            <span class="keywordtype">int</span> port ,</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>            <span class="keywordtype">bool</span> type , </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>            std::function&lt;<span class="keywordtype">void</span> ( <span class="keyword">struct</span> addrinfo * )&gt; funok ,</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>            std::function&lt;<span class="keywordtype">void</span> ( <span class="keywordtype">int</span> )&gt; funfail</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>        );  </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#a2bbf081cf1e028527d89ff0c3589626f">   80</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a2bbf081cf1e028527d89ff0c3589626f">resolve</a>( <span class="keyword">const</span> std::string&amp; url , <span class="keyword">const</span> std::string&amp;  service , std::function&lt;<span class="keywordtype">void</span> ( <span class="keyword">struct</span> addrinfo * )&gt; fun);</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23">resolve</a>( <span class="keyword">const</span> std::string&amp; url ,</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>            <span class="keyword">const</span> std::string&amp;  service ,</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>            std::function&lt;<span class="keywordtype">void</span> ( <span class="keyword">struct</span> addrinfo * )&gt; funok,</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>            std::function&lt;<span class="keywordtype">void</span> ( <span class="keywordtype">int</span> )&gt; funfail</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>        );</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>  </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23">resolve</a>( <span class="keyword">const</span> std::string&amp; url , <span class="keywordtype">int</span> port , <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; ips , <a class="code hl_enumeration" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3">protocol</a> ptcol = <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3afe2b3109e53ef62a6c026a555db5b95d">IP4</a> );</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23">resolve</a>( <span class="keyword">const</span> std::string&amp; url , <span class="keywordtype">int</span> port , <span class="keyword">struct</span> addrinfo * res , <a class="code hl_enumeration" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3">protocol</a> ptcol = <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3afe2b3109e53ef62a6c026a555db5b95d">IP4</a> );</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23">resolve</a>( <span class="keyword">const</span> std::string&amp; url , <span class="keyword">const</span> std::string&amp; service , <a class="code hl_typedef" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a>&amp; ips , <a class="code hl_enumeration" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3">protocol</a> ptcol = <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3afe2b3109e53ef62a6c026a555db5b95d">IP4</a> );</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23">resolve</a>( <span class="keyword">const</span> std::string&amp; url , <span class="keyword">const</span> std::string&amp; service , <span class="keyword">struct</span> addrinfo * res , <a class="code hl_enumeration" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3">protocol</a> ptcol = <a class="code hl_enumvalue" href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3afe2b3109e53ef62a6c026a555db5b95d">IP4</a> );</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a77040f18326deaf3d6e5656406267598">on_resolve</a>( <span class="keyword">struct</span> addrinfo * info );</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>    </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#adadcdb5bd66b45fe0afdc66c79bd0ced">   96</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#adadcdb5bd66b45fe0afdc66c79bd0ced">seterror</a>( <span class="keywordtype">int</span> error ) { m_error = error; }</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#a55b694068d947ba812181e5064071620">   98</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a55b694068d947ba812181e5064071620">clear</a>(){ pt_result = <span class="keyword">nullptr</span>;}</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>    </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="../../d1/d91/classwheels_1_1resolver.html#a416942bb1963ac538d39d587b21b4933">  100</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a416942bb1963ac538d39d587b21b4933">finish</a>(){ <span class="keywordflow">return</span> m_finish.load(); }</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>    <span class="keyword">static</span> std::string <a class="code hl_function" href="../../d1/d91/classwheels_1_1resolver.html#a7065c9cba5c51587e536a794c2e79793">errMsg</a>( <span class="keywordtype">int</span> err );</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>};</div>
</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>}</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aary__str_8hpp_html"><div class="ttname"><a href="../../d3/df7/ary__str_8hpp.html">ary_str.hpp</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html">wheels::resolver</a></div><div class="ttdef"><b>定义</b> <a href="#l00020">resolver.hpp:22</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a01a6d6380a3a3cd74fe8ba7cc913d5f3"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3">wheels::resolver::protocol</a></div><div class="ttdeci">protocol</div><div class="ttdef"><b>定义</b> <a href="#l00024">resolver.hpp:24</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a01a6d6380a3a3cd74fe8ba7cc913d5f3ac41e26c5f094bc5e238148e89f537f41"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3ac41e26c5f094bc5e238148e89f537f41">wheels::resolver::IP6</a></div><div class="ttdeci">@ IP6</div><div class="ttdef"><b>定义</b> <a href="#l00024">resolver.hpp:24</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a01a6d6380a3a3cd74fe8ba7cc913d5f3afe2b3109e53ef62a6c026a555db5b95d"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a01a6d6380a3a3cd74fe8ba7cc913d5f3afe2b3109e53ef62a6c026a555db5b95d">wheels::resolver::IP4</a></div><div class="ttdeci">@ IP4</div><div class="ttdef"><b>定义</b> <a href="#l00024">resolver.hpp:24</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a2bbf081cf1e028527d89ff0c3589626f"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a2bbf081cf1e028527d89ff0c3589626f">wheels::resolver::resolve</a></div><div class="ttdeci">void resolve(const std::string &amp;url, const std::string &amp;service, std::function&lt; void(struct addrinfo *)&gt; fun)</div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a416942bb1963ac538d39d587b21b4933"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a416942bb1963ac538d39d587b21b4933">wheels::resolver::finish</a></div><div class="ttdeci">bool finish()</div><div class="ttdef"><b>定义</b> <a href="#l00100">resolver.hpp:100</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a41847ebd788e7a75b46cfa1b94a15a73"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a41847ebd788e7a75b46cfa1b94a15a73">wheels::resolver::resolver</a></div><div class="ttdeci">resolver()</div><div class="ttdef"><b>定义</b> <a href="../../d6/d77/resolver_8cpp_source.html#l00027">resolver.cpp:27</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a55b694068d947ba812181e5064071620"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a55b694068d947ba812181e5064071620">wheels::resolver::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>定义</b> <a href="#l00098">resolver.hpp:98</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a6f21679631bf350c38d4324deb1d726f"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a6f21679631bf350c38d4324deb1d726f">wheels::resolver::~resolver</a></div><div class="ttdeci">virtual ~resolver()</div><div class="ttdef"><b>定义</b> <a href="../../d6/d77/resolver_8cpp_source.html#l00062">resolver.cpp:62</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a7065c9cba5c51587e536a794c2e79793"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a7065c9cba5c51587e536a794c2e79793">wheels::resolver::errMsg</a></div><div class="ttdeci">static std::string errMsg(int err)</div><div class="ttdef"><b>定义</b> <a href="../../d6/d77/resolver_8cpp_source.html#l00291">resolver.cpp:291</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_a77040f18326deaf3d6e5656406267598"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#a77040f18326deaf3d6e5656406267598">wheels::resolver::on_resolve</a></div><div class="ttdeci">void on_resolve(struct addrinfo *info)</div><div class="ttdef"><b>定义</b> <a href="../../d6/d77/resolver_8cpp_source.html#l00138">resolver.cpp:138</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_adadcdb5bd66b45fe0afdc66c79bd0ced"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#adadcdb5bd66b45fe0afdc66c79bd0ced">wheels::resolver::seterror</a></div><div class="ttdeci">void seterror(int error)</div><div class="ttdef"><b>定义</b> <a href="#l00096">resolver.hpp:96</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_adb2466244a1cd145e6a53621f7fbfe23"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23">wheels::resolver::resolve</a></div><div class="ttdeci">void resolve(const std::string &amp;url, int port, bool type, std::function&lt; void(struct addrinfo *)&gt; fun)</div><div class="ttdoc">解析给定的域名。</div><div class="ttdef"><b>定义</b> <a href="../../d6/d77/resolver_8cpp_source.html#l00080">resolver.cpp:80</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_ae6fba2077fda8e8a9f9eb0ae6bb6083b"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#ae6fba2077fda8e8a9f9eb0ae6bb6083b">wheels::resolver::resolver</a></div><div class="ttdeci">resolver(const std::string &amp;url, const std::string &amp;service, std::function&lt; void(struct addrinfo *) &gt; on_success, std::function&lt; void(int)&gt; on_fail)</div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_afce9626e56748f6eaf37fb14e51aa4c3"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3">wheels::resolver::err_code</a></div><div class="ttdeci">err_code</div><div class="ttdef"><b>定义</b> <a href="#l00025">resolver.hpp:25</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_afce9626e56748f6eaf37fb14e51aa4c3a0cb93165c4a3abcda41b979f3387ceb6"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3a0cb93165c4a3abcda41b979f3387ceb6">wheels::resolver::ERR_ALLOC_MEM</a></div><div class="ttdeci">@ ERR_ALLOC_MEM</div><div class="ttdef"><b>定义</b> <a href="#l00027">resolver.hpp:27</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_afce9626e56748f6eaf37fb14e51aa4c3a2de92ce777d335de3ca97f96c68e5121"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3a2de92ce777d335de3ca97f96c68e5121">wheels::resolver::OK</a></div><div class="ttdeci">@ OK</div><div class="ttdef"><b>定义</b> <a href="#l00030">resolver.hpp:29</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_afce9626e56748f6eaf37fb14e51aa4c3aefc7a7500c732953216e9236dc8bc327"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3aefc7a7500c732953216e9236dc8bc327">wheels::resolver::ERR_UV_DNS_RESOLVE</a></div><div class="ttdeci">@ ERR_UV_DNS_RESOLVE</div><div class="ttdef"><b>定义</b> <a href="#l00028">resolver.hpp:28</a></div></div>
<div class="ttc" id="aclasswheels_1_1resolver_html_afce9626e56748f6eaf37fb14e51aa4c3af19d656cfa3ad08c486b584b077e9ef4"><div class="ttname"><a href="../../d1/d91/classwheels_1_1resolver.html#afce9626e56748f6eaf37fb14e51aa4c3af19d656cfa3ad08c486b584b077e9ef4">wheels::resolver::ERR_BASE</a></div><div class="ttdeci">@ ERR_BASE</div><div class="ttdef"><b>定义</b> <a href="#l00026">resolver.hpp:26</a></div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
<div class="ttc" id="anamespacewheels_html_a17042f775c3493c1f9592ca7883dbd5e"><div class="ttname"><a href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">wheels::ArrayString</a></div><div class="ttdeci">ary_str ArrayString</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00010">ary_str.hpp:10</a></div></div>
<div class="ttc" id="auvlper_8hpp_html"><div class="ttname"><a href="../../dc/d4b/uvlper_8hpp.html">uvlper.hpp</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
